<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: rect.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00935.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">rect.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="a00935_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a479bbe69c871894f6ca23dfa237481ad"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a479bbe69c871894f6ca23dfa237481ad">SetRect</a> (LPRECT prc, int left, int top, int right, int bottom)</td></tr>
<tr class="separator:a479bbe69c871894f6ca23dfa237481ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add42cfa617c629deef27087b88368891"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a> (LPRECT prcDst, CONST RECT *prcSrc, int cx, int <a class="el" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</td></tr>
<tr class="separator:add42cfa617c629deef27087b88368891"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac638a1ce39dd10773c0133549503776e"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#ac638a1ce39dd10773c0133549503776e">CopyOffsetRect</a> (LPRECT prcDst, CONST RECT *prcSrc, int cx, int <a class="el" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</td></tr>
<tr class="separator:ac638a1ce39dd10773c0133549503776e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae87a48872786438315bf6793cbce050"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#aae87a48872786438315bf6793cbce050">IsRectEmpty</a> (CONST RECT *prc)</td></tr>
<tr class="separator:aae87a48872786438315bf6793cbce050"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75b3bf802c369845c4381fcee638bc8a"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a> (CONST RECT *prc, POINT pt)</td></tr>
<tr class="separator:a75b3bf802c369845c4381fcee638bc8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59a3cfdacf3d0e5d10c20abee032cfc6"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a59a3cfdacf3d0e5d10c20abee032cfc6">OffsetRect</a> (LPRECT prc, int cx, int <a class="el" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</td></tr>
<tr class="separator:a59a3cfdacf3d0e5d10c20abee032cfc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa361f1e7cc3d9957b148ff982f8d030"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a> (LPRECT prc, int cx, int <a class="el" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</td></tr>
<tr class="separator:afa361f1e7cc3d9957b148ff982f8d030"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c87c29903dd37145cd93b64140a5d3a"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a> (LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</td></tr>
<tr class="separator:a1c87c29903dd37145cd93b64140a5d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae447c29296398f6e6ae0f28d192e606d"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#ae447c29296398f6e6ae0f28d192e606d">UnionRect</a> (LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</td></tr>
<tr class="separator:ae447c29296398f6e6ae0f28d192e606d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cbc8750cb300c339ef3d2c0ca689f1a"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a0cbc8750cb300c339ef3d2c0ca689f1a">EqualRect</a> (CONST RECT *prc1, CONST RECT *prc2)</td></tr>
<tr class="separator:a0cbc8750cb300c339ef3d2c0ca689f1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa9133f9221aadfcbf10c70a168f3a5f"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#afa9133f9221aadfcbf10c70a168f3a5f">SubtractRect</a> (LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</td></tr>
<tr class="separator:afa9133f9221aadfcbf10c70a168f3a5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31ccccdb469eefbb55d18b71a26af0da"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a31ccccdb469eefbb55d18b71a26af0da">CopyRect</a> (LPRECT prcDst, CONST RECT *prcSrc)</td></tr>
<tr class="separator:a31ccccdb469eefbb55d18b71a26af0da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f9d1e9b327899127c080496900d48d9"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a> (LPRECT prc)</td></tr>
<tr class="separator:a6f9d1e9b327899127c080496900d48d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="add42cfa617c629deef27087b88368891"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add42cfa617c629deef27087b88368891">&#9670;&nbsp;</a></span>CopyInflateRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> CopyInflateRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prcDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00046">46</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    prcDst-&gt;left   = prcSrc-&gt;left   - cx;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    prcDst-&gt;right  = prcSrc-&gt;right  + cx;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    prcDst-&gt;top    = prcSrc-&gt;top    - <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    prcDst-&gt;bottom = prcSrc-&gt;bottom + <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00716_source.html#l00456">cy</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00200_source.html#l01879">DefFrameProcWorker()</a>, <a class="el" href="a03728_source.html#l00022">FindNCHit()</a>, <a class="el" href="a00131_source.html#l00745">SLScrollText()</a>, <a class="el" href="a00053_source.html#l01795">xxxCBInternalUpdateEditWindow()</a>, <a class="el" href="a03275_source.html#l00079">xxxHelpLoop()</a>, <a class="el" href="a00191_source.html#l00512">xxxLBSize()</a>, <a class="el" href="a00827_source.html#l00167">xxxMetricsRecalc()</a>, <a class="el" href="a00890_source.html#l00984">xxxPaintSwitchWindow()</a> , 以及 <a class="el" href="a00614_source.html#l00039">xxxTrackCaptionButton()</a>.</p>

</div>
</div>
<a id="ac638a1ce39dd10773c0133549503776e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac638a1ce39dd10773c0133549503776e">&#9670;&nbsp;</a></span>CopyOffsetRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> CopyOffsetRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prcDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00067">67</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;{</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    prcDst-&gt;left   = prcSrc-&gt;left   + cx;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    prcDst-&gt;right  = prcSrc-&gt;right  + cx;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    prcDst-&gt;top    = prcSrc-&gt;top    + <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    prcDst-&gt;bottom = prcSrc-&gt;bottom + <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00716_source.html#l00456">cy</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00833_source.html#l00962">CalcSBStuff()</a>, <a class="el" href="a00827_source.html#l00029">NormalizeRect()</a>, <a class="el" href="a00752_source.html#l00237">ParkIcon()</a>, <a class="el" href="a03719_source.html#l00528">UpdateCheckpoint()</a>, <a class="el" href="a00812_source.html#l01242">UT_GetParentDCClipBox()</a>, <a class="el" href="a00614_source.html#l00768">xxxDrawCaptionBar()</a>, <a class="el" href="a00662_source.html#l00046">xxxDrawWindowFrame()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a>, <a class="el" href="a03590_source.html#l00797">xxxMNOpenHierarchy()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a>, <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a> , 以及 <a class="el" href="a00248_source.html#l00092">xxxSetStaticImage()</a>.</p>

</div>
</div>
<a id="a31ccccdb469eefbb55d18b71a26af0da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31ccccdb469eefbb55d18b71a26af0da">&#9670;&nbsp;</a></span>CopyRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> CopyRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prcDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00391">391</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;{</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc == NULL))</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160; </div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    *prcDst = *prcSrc;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a03719_source.html#l00869">_GetInternalWindowPos()</a>, <a class="el" href="a03719_source.html#l00551">_GetWindowPlacement()</a>, <a class="el" href="a00005_source.html#l00483">BNMultiExtent()</a>, <a class="el" href="a00200_source.html#l00229">CalcClientScrolling()</a>, <a class="el" href="a00200_source.html#l02149">ChildMinMaxInfo()</a>, <a class="el" href="a00800_source.html#l00299">CkptRestore()</a>, <a class="el" href="a00101_source.html#l00446">DefDlgProcWorker()</a>, <a class="el" href="a00041_source.html#l00555">DefWindowProcWorker()</a>, <a class="el" href="a00833_source.html#l00418">DrawGroove()</a>, <a class="el" href="a00833_source.html#l01390">DrawInvertScrollArea()</a>, <a class="el" href="a00890_source.html#l00525">DrawSwitchWndHilite()</a>, <a class="el" href="a00125_source.html#l01856">ECSetEditClip()</a>, <a class="el" href="a00122_source.html#l00488">ECSize()</a>, <a class="el" href="a00125_source.html#l02302">EditWndProc()</a>, <a class="el" href="a00788_source.html#l00384">FindBestPos()</a>, <a class="el" href="a00665_source.html#l02855">InitUserScreen()</a>, <a class="el" href="a00836_source.html#l00067">InternalScrollDC()</a>, <a class="el" href="a00128_source.html#l01093">MLDeleteText()</a>, <a class="el" href="a00128_source.html#l03528">MLDrawText()</a>, <a class="el" href="a00128_source.html#l00837">MLInsertText()</a>, <a class="el" href="a00128_source.html#l02569">MLScroll()</a>, <a class="el" href="a00128_source.html#l00240">MLSetCaretPosition()</a>, <a class="el" href="a00833_source.html#l00501">RecalcTrackRect()</a>, <a class="el" href="a00707_source.html#l00188">RedrawHungWindow()</a>, <a class="el" href="a00689_source.html#l00884">ResetDisplayDevice()</a>, <a class="el" href="a00689_source.html#l00793">ResetSharedDesktops()</a>, <a class="el" href="a00131_source.html#l00363">SLDrawLine()</a>, <a class="el" href="a00131_source.html#l00561">SLDrawText()</a>, <a class="el" href="a00131_source.html#l00197">SLGetClipRect()</a>, <a class="el" href="a00212_source.html#l00458">SoftModalMessageBox()</a>, <a class="el" href="a00752_source.html#l00892">xxx_DrawAnimatedRects()</a>, <a class="el" href="a00005_source.html#l00707">xxxBNDrawText()</a>, <a class="el" href="a00611_source.html#l00021">xxxCalcClientRect()</a>, <a class="el" href="a00053_source.html#l01795">xxxCBInternalUpdateEditWindow()</a>, <a class="el" href="a00656_source.html#l00947">xxxCreateDesktop2()</a>, <a class="el" href="a00800_source.html#l01392">xxxDrawDragRect()</a>, <a class="el" href="a00833_source.html#l00657">xxxDrawSB2()</a>, <a class="el" href="a00182_source.html#l03285">xxxLBoxDrawItem()</a>, <a class="el" href="a00827_source.html#l00167">xxxMetricsRecalc()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a>, <a class="el" href="a03590_source.html#l00797">xxxMNOpenHierarchy()</a>, <a class="el" href="a00800_source.html#l00909">xxxMoveSize()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a>, <a class="el" href="a00053_source.html#l00028">xxxPressButton()</a>, <a class="el" href="a00833_source.html#l01803">xxxSBTrackInit()</a>, <a class="el" href="a03719_source.html#l00744">xxxSetWindowPlacement()</a>, <a class="el" href="a00827_source.html#l01195">xxxSystemParametersInfo()</a>, <a class="el" href="a00800_source.html#l00249">xxxTM_MoveDragRect()</a> , 以及 <a class="el" href="a00611_source.html#l00171">xxxUpdateClientRect()</a>.</p>

</div>
</div>
<a id="a0cbc8750cb300c339ef3d2c0ca689f1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cbc8750cb300c339ef3d2c0ca689f1a">&#9670;&nbsp;</a></span>EqualRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> EqualRect </td>
          <td>(</td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prc1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prc2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00285">285</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;{</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="keywordflow">if</span> ((prc1 == NULL) || (prc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; </div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="comment">     * Test equality only. This is what win31 does. win31 does not check to</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="comment">     * see if the rectangles are &quot;empty&quot; first.</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordflow">return</span> RtlEqualMemory(prc1, prc2, <span class="keyword">sizeof</span>(RECT));</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00200_source.html#l00229">CalcClientScrolling()</a>, <a class="el" href="a00836_source.html#l00067">InternalScrollDC()</a>, <a class="el" href="a00896_source.html#l00159">SmartRectInRegion()</a>, <a class="el" href="a00800_source.html#l01392">xxxDrawDragRect()</a>, <a class="el" href="a00662_source.html#l00046">xxxDrawWindowFrame()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a> , 以及 <a class="el" href="a00827_source.html#l01195">xxxSystemParametersInfo()</a>.</p>

</div>
</div>
<a id="afa361f1e7cc3d9957b148ff982f8d030"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa361f1e7cc3d9957b148ff982f8d030">&#9670;&nbsp;</a></span>InflateRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> InflateRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00158">158</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;{</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    prc-&gt;left   -= cx;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    prc-&gt;right  += cx;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    prc-&gt;top    -= <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    prc-&gt;bottom += <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00716_source.html#l00456">cy</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00550">_AdjustWindowRectEx()</a>, <a class="el" href="a00005_source.html#l00353">BNCalcRect()</a>, <a class="el" href="a00005_source.html#l00483">BNMultiExtent()</a>, <a class="el" href="a00125_source.html#l02076">ECInvalidateClient()</a>, <a class="el" href="a00125_source.html#l01856">ECSetEditClip()</a>, <a class="el" href="a00122_source.html#l00488">ECSize()</a>, <a class="el" href="a03728_source.html#l00022">FindNCHit()</a>, <a class="el" href="a00752_source.html#l00028">ISV_InitMinMaxInfo()</a>, <a class="el" href="a00128_source.html#l01622">MLPaint()</a>, <a class="el" href="a00953_source.html#l01159">ProfMove()</a>, <a class="el" href="a00953_source.html#l01124">ProfSize()</a>, <a class="el" href="a00131_source.html#l00363">SLDrawLine()</a>, <a class="el" href="a00005_source.html#l00707">xxxBNDrawText()</a>, <a class="el" href="a00611_source.html#l00021">xxxCalcClientRect()</a>, <a class="el" href="a00059_source.html#l00071">xxxCBCreateHandler()</a>, <a class="el" href="a00053_source.html#l01795">xxxCBInternalUpdateEditWindow()</a>, <a class="el" href="a00005_source.html#l01118">xxxDrawButton()</a>, <a class="el" href="a00614_source.html#l00768">xxxDrawCaptionBar()</a>, <a class="el" href="a00662_source.html#l00046">xxxDrawWindowFrame()</a>, <a class="el" href="a00659_source.html#l00335">xxxIsDragging()</a>, <a class="el" href="a00827_source.html#l00167">xxxMetricsRecalc()</a>, <a class="el" href="a00890_source.html#l00984">xxxPaintSwitchWindow()</a>, <a class="el" href="a00053_source.html#l00028">xxxPressButton()</a> , 以及 <a class="el" href="a00614_source.html#l00039">xxxTrackCaptionButton()</a>.</p>

</div>
</div>
<a id="a1c87c29903dd37145cd93b64140a5d3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c87c29903dd37145cd93b64140a5d3a">&#9670;&nbsp;</a></span>IntersectRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> IntersectRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prcDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00184">184</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;{</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc1 == NULL) || (prcSrc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    prcDst-&gt;left  = max(prcSrc1-&gt;left, prcSrc2-&gt;left);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    prcDst-&gt;right = min(prcSrc1-&gt;right, prcSrc2-&gt;right);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment">     * check for empty rect</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keywordflow">if</span> (prcDst-&gt;left &lt; prcDst-&gt;right) {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        prcDst-&gt;top = max(prcSrc1-&gt;top, prcSrc2-&gt;top);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        prcDst-&gt;bottom = min(prcSrc1-&gt;bottom, prcSrc2-&gt;bottom);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="comment">         * check for empty rect</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keywordflow">if</span> (prcDst-&gt;top &lt; prcDst-&gt;bottom) {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;            <span class="keywordflow">return</span> TRUE;        <span class="comment">// not empty</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    }</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment">     * empty rect</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(prcDst);</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00935_source.html#l00414">SetRectEmpty()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00905_source.html#l00137">CalcWindowVisRgn()</a>, <a class="el" href="a00872_source.html#l01573">ChangeStates()</a>, <a class="el" href="a00860_source.html#l00328">CreateSpb()</a>, <a class="el" href="a00827_source.html#l00344">DesktopRecalc()</a>, <a class="el" href="a00125_source.html#l01856">ECSetEditClip()</a>, <a class="el" href="a00860_source.html#l00035">FBitsTouch()</a>, <a class="el" href="a00788_source.html#l00384">FindBestPos()</a>, <a class="el" href="a00896_source.html#l00369">InternalInvalidate2()</a>, <a class="el" href="a00836_source.html#l00067">InternalScrollDC()</a>, <a class="el" href="a00896_source.html#l01700">IntersectWithParents()</a>, <a class="el" href="a00200_source.html#l00030">IsPositionable()</a>, <a class="el" href="a00128_source.html#l02569">MLScroll()</a>, <a class="el" href="a00128_source.html#l00240">MLSetCaretPosition()</a>, <a class="el" href="a00800_source.html#l00221">MoveRect()</a>, <a class="el" href="a00872_source.html#l04607">OffsetChildren()</a>, <a class="el" href="a00752_source.html#l00237">ParkIcon()</a>, <a class="el" href="a00896_source.html#l00243">PixieHack()</a>, <a class="el" href="a00896_source.html#l00159">SmartRectInRegion()</a>, <a class="el" href="a00860_source.html#l01000">SpbCheckDce()</a>, <a class="el" href="a00935_source.html#l00316">SubtractRect()</a>, <a class="el" href="a00788_source.html#l00502">TryRect()</a>, <a class="el" href="a00812_source.html#l01242">UT_GetParentDCClipBox()</a>, <a class="el" href="a00800_source.html#l01392">xxxDrawDragRect()</a>, <a class="el" href="a00896_source.html#l01467">xxxGetUpdateRect()</a>, <a class="el" href="a00896_source.html#l01257">xxxInternalInvalidate()</a>, <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>, <a class="el" href="a03590_source.html#l00797">xxxMNOpenHierarchy()</a>, <a class="el" href="a00800_source.html#l00909">xxxMoveSize()</a>, <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a> , 以及 <a class="el" href="a00827_source.html#l01195">xxxSystemParametersInfo()</a>.</p>

</div>
</div>
<a id="aae87a48872786438315bf6793cbce050"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae87a48872786438315bf6793cbce050">&#9670;&nbsp;</a></span>IsRectEmpty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> IsRectEmpty </td>
          <td>(</td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00095">95</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">return</span> ((prc-&gt;left &gt;= prc-&gt;right) || (prc-&gt;top &gt;= prc-&gt;bottom));</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00638_source.html#l00205">_ClipCursor()</a>, <a class="el" href="a03212_source.html#l00082">DrawDiagonalLine()</a>, <a class="el" href="a00833_source.html#l01236">InvertScrollHilite()</a>, <a class="el" href="a00671_source.html#l00275">xxxDWP_Paint()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a> , 以及 <a class="el" href="a00827_source.html#l01195">xxxSystemParametersInfo()</a>.</p>

</div>
</div>
<a id="a59a3cfdacf3d0e5d10c20abee032cfc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59a3cfdacf3d0e5d10c20abee032cfc6">&#9670;&nbsp;</a></span>OffsetRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> OffsetRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00132">132</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    prc-&gt;left   += cx;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    prc-&gt;right  += cx;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    prc-&gt;bottom += <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    prc-&gt;top    += <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00716_source.html#l00456">cy</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03719_source.html#l00551">_GetWindowPlacement()</a>, <a class="el" href="a00836_source.html#l00642">_ScrollDC()</a>, <a class="el" href="a00599_source.html#l02424">_UserSoundSentryWorker()</a>, <a class="el" href="a00200_source.html#l00229">CalcClientScrolling()</a>, <a class="el" href="a00095_source.html#l00176">InternalCreateDialog()</a>, <a class="el" href="a00794_source.html#l00025">MNPositionSysMenu()</a>, <a class="el" href="a00800_source.html#l00221">MoveRect()</a>, <a class="el" href="a00827_source.html#l00029">NormalizeRect()</a>, <a class="el" href="a00872_source.html#l04607">OffsetChildren()</a>, <a class="el" href="a00707_source.html#l00188">RedrawHungWindow()</a>, <a class="el" href="a00101_source.html#l01293">RepositionRect()</a>, <a class="el" href="a00767_source.html#l00897">xxxGetMenuItemRect()</a>, <a class="el" href="a00896_source.html#l01467">xxxGetUpdateRect()</a>, <a class="el" href="a00896_source.html#l01598">xxxGetUpdateRgn()</a>, <a class="el" href="a00827_source.html#l00167">xxxMetricsRecalc()</a>, <a class="el" href="a03590_source.html#l01770">xxxMNFindWindowFromPoint()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a>, <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>, <a class="el" href="a03719_source.html#l00911">xxxSetInternalWindowPos()</a> , 以及 <a class="el" href="a03719_source.html#l00744">xxxSetWindowPlacement()</a>.</p>

</div>
</div>
<a id="a75b3bf802c369845c4381fcee638bc8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75b3bf802c369845c4381fcee638bc8a">&#9670;&nbsp;</a></span>PtInRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> PtInRect </td>
          <td>(</td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">POINT&#160;</td>
          <td class="paramname"><em>pt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00111">111</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> ((pt.x &gt;= prc-&gt;left) &amp;&amp; (pt.x &lt; prc-&gt;right) &amp;&amp;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            (pt.y &gt;= prc-&gt;top)  &amp;&amp; (pt.y &lt; prc-&gt;bottom));</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00923_source.html#l00028">_ChildWindowFromPointEx()</a>, <a class="el" href="a00638_source.html#l00205">_ClipCursor()</a>, <a class="el" href="a00005_source.html#l01283">ButtonWndProcWorker()</a>, <a class="el" href="a00053_source.html#l00076">ComboBoxWndProcWorker()</a>, <a class="el" href="a00125_source.html#l02302">EditWndProc()</a>, <a class="el" href="a03281_source.html#l00054">EnumPwndDlgChildProc()</a>, <a class="el" href="a03728_source.html#l00022">FindNCHit()</a>, <a class="el" href="a00182_source.html#l00821">ISelFromPt()</a>, <a class="el" href="a03590_source.html#l01708">MNItemHitTest()</a>, <a class="el" href="a00923_source.html#l00117">SpeedHitTest()</a>, <a class="el" href="a00833_source.html#l01453">xxxEndScroll()</a>, <a class="el" href="a03275_source.html#l00079">xxxHelpLoop()</a>, <a class="el" href="a00659_source.html#l00335">xxxIsDragging()</a>, <a class="el" href="a03590_source.html#l01770">xxxMNFindWindowFromPoint()</a>, <a class="el" href="a03290_source.html#l02377">xxxMouseHoverTimer()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a>, <a class="el" href="a00659_source.html#l00224">xxxQueryDropObject()</a>, <a class="el" href="a03290_source.html#l03275">xxxScanSysQueue()</a>, <a class="el" href="a00833_source.html#l01606">xxxTrackBox()</a>, <a class="el" href="a00614_source.html#l00039">xxxTrackCaptionButton()</a>, <a class="el" href="a00800_source.html#l00741">xxxTrackInitSize()</a>, <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>, <a class="el" href="a00833_source.html#l01688">xxxTrackThumb()</a> , 以及 <a class="el" href="a00923_source.html#l00227">xxxWindowHitTest2()</a>.</p>

</div>
</div>
<a id="a479bbe69c871894f6ca23dfa237481ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a479bbe69c871894f6ca23dfa237481ad">&#9670;&nbsp;</a></span>SetRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> SetRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00021">21</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    prc-&gt;left = left;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    prc-&gt;top = top;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    prc-&gt;right = right;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    prc-&gt;bottom = bottom;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00035_source.html#l00749">ClientThreadSetup()</a>, <a class="el" href="a00788_source.html#l00384">FindBestPos()</a>, <a class="el" href="a00665_source.html#l02855">InitUserScreen()</a>, <a class="el" href="a03224_source.html#l01867">PSMTextOut()</a>, <a class="el" href="a00689_source.html#l00884">ResetDisplayDevice()</a>, <a class="el" href="a03290_source.html#l02457">ResetMouseHover()</a>, <a class="el" href="a03290_source.html#l03275">xxxScanSysQueue()</a> , 以及 <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>.</p>

</div>
</div>
<a id="a6f9d1e9b327899127c080496900d48d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f9d1e9b327899127c080496900d48d9">&#9670;&nbsp;</a></span>SetRectEmpty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> SetRectEmpty </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00414">414</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;{</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160; </div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    RtlZeroMemory(prc, <span class="keyword">sizeof</span>(RECT));</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00005_source.html#l00353">BNCalcRect()</a>, <a class="el" href="a00200_source.html#l00229">CalcClientScrolling()</a>, <a class="el" href="a00905_source.html#l00137">CalcWindowVisRgn()</a>, <a class="el" href="a00836_source.html#l00067">InternalScrollDC()</a>, <a class="el" href="a00935_source.html#l00184">IntersectRect()</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00026_source.html#l01007">ScrollDC()</a>, <a class="el" href="a00131_source.html#l00197">SLGetClipRect()</a>, <a class="el" href="a00935_source.html#l00316">SubtractRect()</a>, <a class="el" href="a00935_source.html#l00233">UnionRect()</a>, <a class="el" href="a00059_source.html#l00247">xxxCBCalcControlRects()</a>, <a class="el" href="a00767_source.html#l00897">xxxGetMenuItemRect()</a>, <a class="el" href="a00896_source.html#l01467">xxxGetUpdateRect()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a> , 以及 <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>.</p>

</div>
</div>
<a id="afa9133f9221aadfcbf10c70a168f3a5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa9133f9221aadfcbf10c70a168f3a5f">&#9670;&nbsp;</a></span>SubtractRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> SubtractRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prcDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00316">316</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;{</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordtype">int</span> cSidesOut;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    BOOL fIntersect;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    RECT rcInt;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc1 == NULL) || (prcSrc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    fIntersect = <a class="code" href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a>(&amp;rcInt, prcSrc1, prcSrc2);</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="comment">     * this is done after the intersection in case prcDst is the same</span></div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="comment">     * pointer as prcSrc2</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    *prcDst = *prcSrc1;</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <span class="keywordflow">if</span> (fIntersect) {</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="comment">         * exactly any 3 sides of prc2 must be outside prc1 to subtract</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        cSidesOut = 0;</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="keywordflow">if</span> (rcInt.left   &lt;= prcSrc1-&gt;left)</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        <span class="keywordflow">if</span> (rcInt.top    &lt;= prcSrc1-&gt;top)</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        <span class="keywordflow">if</span> (rcInt.right  &gt;= prcSrc1-&gt;right)</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        <span class="keywordflow">if</span> (rcInt.bottom &gt;= prcSrc1-&gt;bottom)</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="keywordflow">if</span> (cSidesOut == 4) {</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;<span class="comment">             * result is the empty rect</span></div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;             <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(prcDst);</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;             <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordflow">if</span> (cSidesOut == 3) {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="comment">             * subtract the intersecting rect</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            <span class="keywordflow">if</span> (rcInt.left &gt; prcSrc1-&gt;left)</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                prcDst-&gt;right = rcInt.left;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160; </div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (rcInt.right &lt; prcSrc1-&gt;right)</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                prcDst-&gt;left = rcInt.right;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (rcInt.top &gt; prcSrc1-&gt;top)</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                prcDst-&gt;bottom = rcInt.top;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (rcInt.bottom &lt; prcSrc1-&gt;bottom)</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;                prcDst-&gt;top = rcInt.bottom;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    }</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160; </div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordflow">if</span> ((prcDst-&gt;left &gt;= prcDst-&gt;right) || (prcDst-&gt;top &gt;= prcDst-&gt;bottom))</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00935_source.html#l00184">IntersectRect()</a> , 以及 <a class="el" href="a00935_source.html#l00414">SetRectEmpty()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00860_source.html#l00035">FBitsTouch()</a> , 以及 <a class="el" href="a00836_source.html#l00067">InternalScrollDC()</a>.</p>

</div>
</div>
<a id="ae447c29296398f6e6ae0f28d192e606d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae447c29296398f6e6ae0f28d192e606d">&#9670;&nbsp;</a></span>UnionRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> UnionRect </td>
          <td>(</td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prcDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CONST RECT *&#160;</td>
          <td class="paramname"><em>prcSrc2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00935_source.html">rect.c</a> 第 <a class="el" href="a00935_source.html#l00233">233</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;{</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    BOOL frc1Empty, frc2Empty;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc1 == NULL) || (prcSrc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    frc1Empty = ((prcSrc1-&gt;left &gt;= prcSrc1-&gt;right) ||</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;            (prcSrc1-&gt;top &gt;= prcSrc1-&gt;bottom));</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    frc2Empty = ((prcSrc2-&gt;left &gt;= prcSrc2-&gt;right) ||</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            (prcSrc2-&gt;top &gt;= prcSrc2-&gt;bottom));</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordflow">if</span> (frc1Empty &amp;&amp; frc2Empty) {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(prcDst);</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">if</span> (frc1Empty) {</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        *prcDst = *prcSrc2;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keywordflow">if</span> (frc2Empty) {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        *prcDst = *prcSrc1;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="comment">     * form the union of the two non-empty rects</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    prcDst-&gt;left   = min(prcSrc1-&gt;left,   prcSrc2-&gt;left);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    prcDst-&gt;top    = min(prcSrc1-&gt;top,    prcSrc2-&gt;top);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    prcDst-&gt;right  = max(prcSrc1-&gt;right,  prcSrc2-&gt;right);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    prcDst-&gt;bottom = max(prcSrc1-&gt;bottom, prcSrc2-&gt;bottom);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00935_source.html#l00414">SetRectEmpty()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00836_source.html#l00642">_ScrollDC()</a>, <a class="el" href="a00200_source.html#l00229">CalcClientScrolling()</a>, <a class="el" href="a00836_source.html#l00067">InternalScrollDC()</a>, <a class="el" href="a00128_source.html#l02569">MLScroll()</a> , 以及 <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00935_html_a1c87c29903dd37145cd93b64140a5d3a"><div class="ttname"><a href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a></div><div class="ttdeci">BOOL APIENTRY IntersectRect(LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00184">rect.c:184</a></div></div>
<div class="ttc" id="aa00716_html_ac7b5fb8555805e7e7c11b30491a324f7"><div class="ttname"><a href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a></div><div class="ttdeci">int cy[5]</div><div class="ttdef"><b>Definition:</b> <a href="a00716_source.html#l00456">inctlpan.c:456</a></div></div>
<div class="ttc" id="aa00935_html_a6f9d1e9b327899127c080496900d48d9"><div class="ttname"><a href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a></div><div class="ttdeci">BOOL APIENTRY SetRectEmpty(LPRECT prc)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00414">rect.c:414</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_d1396aa20fcbba3cbb80fda211a2145f.html">rtl</a></li><li class="navelem"><a class="el" href="a00935.html">rect.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
